package com.hs.sfzy.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hs.sfzy.entity.Fm;
import com.hs.sfzy.mapper.FmMapper;
import com.hs.sfzy.service.FmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FmServiceImpl implements FmService {
    @Autowired
    FmMapper fmMapper;

    @Override
    public PageInfo<Fm> selectAll(int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        List<Fm> list = fmMapper.selectAll();
        return new PageInfo<>(list);
    }
}
